package edu.nf.waimai.model.user;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.nf.db.util.Column;

import java.time.LocalDateTime;


/***
 *  购物车实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ShoppingCart {
    /**
     * 购物车id
     */
    @Column("shopping_cart_id")
    private Integer shoppingCartId;
    /**
     * 用户id
     */
    @Column("u_id")
    private Integer uid;
    /**
     * 商品id
     */
    @Column("item_id")
    private Integer itemId;
    /**
     * 商家id
     */
    @Column("shop_id")
    private Integer shopId;
    /**
     * 商品数量
     */
    @Column("item_num")
    private Integer itemNum;
    /**
     * 购物车状态
     */
    @Column("shopping_cart_status")
    private Integer shoppingCartStatus;
    /**
     *  购物车商品的详情
     */
    @Column("shopping_cart_details")
    private String shoppingCartDetails;
    /**
     * 创建时间
     */
    @Column("shopping_cart_datetime")
    private LocalDateTime shoppingCartDatetime;
}
